 {
        
       cc.Class({
            extends: cc.Component,
            properties: {
                nodeHead: {
                    default: null,
                    type: cc.Node
                },
                labName: {
                    default: null,
                    type: cc.Label
                },
                labWinValue: {
                    default: null,
                    type: cc.Label
                },
                labLoseValue: {
                    default: null,
                    type: cc.Label
                },
                spBg: {
                    default: null,
                    type: cc.Sprite
                },
                coinSp: {
                    default: null,
                    type: cc.Sprite
                }
            },
            start: function () {
                Global.tableModel.getTableType() == Global.config.tableType.CREATE && (this.coinSp.spriteFrame = null);
            },
            bindData: function (e) {
                var t = Global.tableModel.toLocalSeatIndex(e.seatId), n = Global.tableModel.getPlayerModel(t);
                if (n) {
                    var o = Global.utils.getFixString(n.getName(), 4);
                    this.labName.string = o;
                    var i = this.nodeHead.getComponent("HeadController");
                    i && i.bindData(n.getPic());
                }
                if (this.labWinValue.string = "", this.labLoseValue.string = "", e.totalScore >= 0) {
                    this.labWinValue.string = "+" + e.totalScore, Global.spriteAtlas.setSpriteFrame(this.spBg, "Texture/gameResult", "JS_11");
                    var a = new cc.Color(255, 236, 172);
                    this.labName.node.color = a;
                } else this.labLoseValue.string = e.totalScore + "";
            }
        })
    }